import React from 'react';
import { useSelector } from 'react-redux';
import styleObj from './Tab.module.scss';
console.log(styleObj);
export default function Tab() {
    const { tabs } = useSelector((state: any) => state.tabs);
    const { current } = useSelector((state: any) => state.tabs);
    console.log(current);
    
    return <div className={styleObj.tabs}>
        {
            tabs.map((item: any, index: number) => {
                return <div className={styleObj.tabsItem} key={index}>{item.text}</div>
            })
        }
    </div>;
}